package ${namespace}.service;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import ${namespace}.entity.${clazz};
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * ${comment}接口service接口层
 * @author ${author}
 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
 */
public interface ${bclazz}Service {

	/**
	 * 保存${comment}
	 * @param ${sclazz}Entity ${comment}实体
	 * @return Long 返回插入${comment}记录ID
	 * @author ${author}
	 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
	 */
	public long save${bclazz}(${clazz} ${sclazz}Entity);
	
	
	/**
	 * 删除${comment}
	 * @param 
	 * @return int 返回删除记录条数
	 * @author ${author}
	 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
	 */
	public int delete${bclazz}ById(long id);
	
	
	/**
	 * 根据ID查询${comment}
	 * @param id ${comment}id
	 * @return ${clazz} ${comment}对象
	 * @author ${author}
	 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
	 */
	public ${clazz} get${bclazz}ById(Long id);

	/**
	 * 更新${comment}
	 * @param ${clazz} ${comment}对象
	 * @return int 更新是否成功，>1代表更新成功
	 * @author ${author}
	 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
	 */
	public int update${bclazz}(${clazz} ${sclazz}Entity);

	/**
	 * 分页查询${comment}
	 * @param pageParam 分页参数
	 * @param paramMap 查询参数
	 * @return PageBean 分页参数和分页数据
	 * @author ${author}
	 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
	 */
	public PageBean list${bclazz}Page(PageParam pageParam, Map<String, Object> paramMap);
	
	/**
	 * 根据条件查询${comment}
	 * @param param
	 * @return ${comment}列表
	 * @author ${author}
	 * @date ${.now?string("yyyy-MM-dd HH:mm:ss")}
	 */
	public List<${clazz}> list${bclazz}(Map<String, Object> param);
	
	
	
	
	
}
